home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / msoftapp.zip / DIBVIEW.H < prev    next >
C/C++ Source or Header  |  1993-06-01  |  2KB  |  56 lines

  1. // dibview.h : interface of the CDibView class
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and Microsoft
  9. // QuickHelp and/or WinHelp documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. class CDibView : public CScrollView
  14. {
  15. protected: // create from serialization only
  16.     CDibView();
  17.     DECLARE_DYNCREATE(CDibView)
  18.  
  19. // Attributes
  20. public:
  21.     CDibDoc* GetDocument()
  22.         {
  23.             ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CDibDoc)));
  24.             return (CDibDoc*) m_pDocument;
  25.         }
  26.  
  27. // Operations
  28. public:
  29.  
  30. // Implementation
  31. public:
  32.     virtual ~CDibView();
  33.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  34.  
  35.     virtual void OnInitialUpdate();
  36.     virtual void OnActivateView(BOOL bActivate, CView* pActivateView,
  37.                     CView* pDeactiveView);
  38.  
  39.     // Printing support
  40. protected:
  41.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  42.  
  43. // Generated message map functions
  44. protected:
  45.     //{{AFX_MSG(CDibView)
  46.     afx_msg void OnEditCopy();
  47.     afx_msg void OnUpdateEditCopy(CCmdUI* pCmdUI);
  48.     afx_msg void OnEditPaste();
  49.     afx_msg void OnUpdateEditPaste(CCmdUI* pCmdUI);
  50.     afx_msg LRESULT OnDoRealize(WPARAM wParam, LPARAM lParam);  // user message
  51.     //}}AFX_MSG
  52.     DECLARE_MESSAGE_MAP()
  53. };
  54.  
  55. /////////////////////////////////////////////////////////////////////////////
  56.